import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const NearbyPage = () =>
  import(/* webpackChunkName: "jiadxhome/nearby" */ '../page/NearbyPage.vue')
const CollectionPage = () =>
  import(
    /* webpackChunkName: "jiadxhome/collection" */ '../page/CollectionPage.vue'
  )

const router = new Router({
  routes: [
    {
      path: '/nearby',
      component: NearbyPage
    },
    {
      path: '/collection',
      component: CollectionPage
    },
    {
      path: '/',
      component: NearbyPage
    }
  ]
})

export default router
